package com.athl.demoreactor.controller;

/**
 * @author hl
 * @Data 2020/9/16
 */
/*@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("/getUser/{id}")
    public Mono<User> getUserById(@PathVariable("id") Integer id) {
        return userService.getUserById(id);
    }

    @GetMapping("/getAllUser")
    public Flux<User> getAllUser() {
        return userService.getAllUser();
    }

    @PostMapping("/saveUser")
    public Mono<Void> saveUser(@RequestBody User user) {
        Mono<User> userMono = Mono.just(user);
        return userService.saveUserInfo(userMono);
    }
}*/
